<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('inspection_vendors', function (Blueprint $table) {
            $table->comment('供应商信息');
            $table->bigIncrements('id')->comment('ID');
            $table->string('name', 64)->nullable(false)->comment('公司名称');
            $table->string('phone', 32)->nullable(false)->comment('公司电话');
            $table->string('email', 64)->nullable()->comment('公司邮箱');
            $table->string('address', 64)->nullable()->comment('公司地址');
            $table->string('congition', 32)->nullable()->comment('识别ID');
            $table->string('remark', 255)->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('inspection_vendors');
    }
};